package com.csun.cmny.provider.job.simple;

import com.csun.cmny.provider.service.OmcRpcService;
import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import com.paascloud.elastic.lite.annotation.ElasticJobConfig;
import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-11-14 09:40
 * @Description:
 */
@Slf4j
@ElasticJobConfig(cron = "0 55 23 L * ?")
public class OldmanAnalysisJob implements SimpleJob {

    @Resource
    private OmcRpcService omcRpcService;

    @Override
    public void execute(ShardingContext shardingContext) {

        omcRpcService.oldmanAnalysisCalc();
    }
}
